﻿using System.ComponentModel.DataAnnotations;

namespace RescueApp.Model
{
    public class RescueApply
    {
        [Key]
        public int RescueID { get; set; }

        [Required, StringLength(10)]
        public string LicenseID { get; set; }

        [Required, StringLength(20)]
        public string CarType { get; set; }

        [Required, StringLength(18)]
        public string DriverLicenseID { get; set; }

        [Required, StringLength(11)]
        public string Phone { get; set; }

        [Required, StringLength(50)]
        public string RescueLocation { get; set; }

        [Required, StringLength(50)]
        public string Destination { get; set; }

        [Required]
        public DateTime FillingDate { get; set; }
    }
}
